package edu.sandau.b230151.b23015109.controller;
import edu.sandau.b230151.b23015109.model.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class controller {
    @GetMapping("hello")
    public String hello(){
        return "HELLO WORLD";
    }
    @GetMapping("stu")
    public Student stu(){
        return new Student("1","jack",65);
    }
 //   @GetMapping("list")
    public List<Student>list(){
        ArrayList<Student> students=new ArrayList<>();
        students.add(new Student("1","jack",65));
      students.add(new Student("1","jack",65));
       return students;
    }
}
